<template>
  <div>
    <!-- 三级联动全局组件  三级联动已经注册为全局组件，因此不用再import引入了 -->
      <typeNav/>
      <ListContainer/>
      <Recommend/>
      <Rank/>
      <Link/>
      <Floor v-for="floor in floorList" :key="floor.id" :list="floor"/>
      <Brand/>
      
  </div>
</template>

<script>
// 引入其余的组件
// import ListContainer from '../../views/Home/ListContainer';
import ListContainer from './ListContainer';
import Recommend from './Recommend';
import Rank from './Rank';
import Link from './Like';
import Floor from './Floor';
import Brand from './Brand';

import { mapState } from "vuex";
export default {
  name:'',
  components:{
    ListContainer,
    Recommend,
    Rank,
    Link,
    Floor,
    Brand
  },
  mounted(){
    this.$store.dispatch('getFloorList');
  },
  computed:{
    ...mapState({
      floorList:state => state.home.floorList
    })
  }

}
</script>

<style>

</style>